<?php
/* Smarty version 3.1.31, created on 2018-05-17 23:31:14
  from "D:\wamp64\www\wanju\views\commission\config.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.31',
  'unifunc' => 'content_5afda042b33b67_35595556',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'f36041f96d71b81b68d4ef49be52a6f8d3ae2761' => 
    array (
      0 => 'D:\\wamp64\\www\\wanju\\views\\commission\\config.html',
      1 => 1526571071,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5afda042b33b67_35595556 (Smarty_Internal_Template $_smarty_tpl) {
?>

  <div class="x_panel">
    <div class="x_content" style="display: block;">
      <!--表格主体内容-->

      <div class="cont">
        <table class="table table-bordered table-striped">
          <thead>
          <tr>
            <th width="100px">序号</th>
            <th>角色</th>
            <th>类型</th>
            <th>佣金比例</th>
            <th>操作</th>
          </tr>
          </thead>
          <tbody>
          <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['commission']->value, 'commissionitem');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['commissionitem']->value) {
?>
          <tr>
            <td><?php echo $_smarty_tpl->tpl_vars['commissionitem']->value['config_id'];?>
</td>
            <td><?php if ($_smarty_tpl->tpl_vars['commissionitem']->value['role'] == 1) {?>店主<?php } else { ?>店长<?php }?></td>
            <td><?php if ($_smarty_tpl->tpl_vars['commissionitem']->value['type'] == 0) {?>入场券使用<?php } elseif ($_smarty_tpl->tpl_vars['commissionitem']->value['type'] == 1) {?>会员卡使用<?php } elseif ($_smarty_tpl->tpl_vars['commissionitem']->value['type'] == 2) {?>商品出售<?php } else { ?>商品回收<?php }?></td>
            <td><?php echo $_smarty_tpl->tpl_vars['commissionitem']->value['config_value'];?>
%</td>
            <td>
              <div class="x_content">
                <a class="btn btn-primary btn-xs" href="<?php $_template = new Smarty_Internal_Template('eval:'.U(array('commission/edit','config_id'=>$_smarty_tpl->tpl_vars['commissionitem']->value['config_id'])), $_smarty_tpl->smarty, $_smarty_tpl);echo $_template->fetch(); ?>"> 编辑</a>
              </div>
            </td>
          </tr>
          <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);
?>

          </tbody>
        </table>
      </div>
    </div>
  </div>

<?php }
}
